/*
 * Before compilation and execution, understand what could be the output of the program.
 * Program demostrates how to return value with call by reference.
 * Also demostrates what could happen when function retrun type is not declared.
 */

#include <stdio.h>

power(int **ptr)
{
	int b;

	b = **ptr * **ptr;

	return b;
}

int main()
{
	int a = 5, *aa;

	aa = &a;

	a = power(&aa);
	printf("a = %d, aa = %u\n", a, aa);

	return 0;
}
